const proto = {
  name: 'p_parent',
  type: 'p_object',
  [Symbol.for('P_address')]: 'diQiu',
};

const ins = Object.create(proto);
Object.defineProperty(ins, 'age', {
  value: 18,
});

ins.sex = 1;
ins[Symbol.for('say')] = function () {
  console.log('say');
};

const inKeys = [];
for (const p in ins) {
  inKeys.push(p);
}

console.log(inKeys); // [sex, name, type]
console.log(Reflect.ownKeys(ins)); // [age, sex, Symbol(say))]
